package cn.stylefeng.guns.sys.modular.system.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author liuy
 * @since 2022-05-14
 */
@Data
@TableName("bty_contract_detail")
public class BtyContractDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 主表id
     */
    @TableField("contract_id")
    private Integer contractId;

    /**
     * 计费方式1每日每平 2每月每平 3固定计费
     */
    @TableField("billing_method")
    private Integer billingMethod;

    /**
     * 费用名称
     */
    @TableField("expense_name")
    private String expenseName;

    /**
     * 每日每平金额
     */
    @TableField("daily_average_amount")
    private BigDecimal dailyAverageAmount;

    /**
     * 每月每平金额
     */
    @TableField("monthly_average_amount")
    private BigDecimal monthlyAverageAmount;

    /**
     * 月金额
     */
    @TableField("monthly_amount")
    private BigDecimal monthlyAmount;

    /**
     * 递增明细日期
     */
    @TableField("detail_date")
    private String detailDate;

    /**
     * 总金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;

    /**
     * 租金日期
     */
    @TableField("rent_date")
    private String rentDate;

    /**
     * 租金抽成
     */
    @TableField("rent_bonus")
    private String rentBonus;

    /**
     * 其他费用名称
     */
    @TableField("other_expenses_name")
    private String otherExpensesName;

    /**
     * 其他费用金额
     */
    @TableField("other_expenses_amount")
    private String otherExpensesAmount;

    /**
     * 保证金名称
     */
    @TableField("bond_name")
    private String bondName;

    /**
     * 保证金金额
     */
    @TableField("bond_amount")
    private BigDecimal bondAmount;


    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

}
